import request from '@/utils/request'

// 查询关系列表
export function listUserRelation(query) {
  return request({
    url: '/user/userRelation/list',
    method: 'get',
    params: query
  })
}

// 查询关系详细
export function getUserRelation(id) {
  return request({
    url: '/user/userRelation/' + id,
    method: 'get'
  })
}

// 新增关系
export function addUserRelation(data) {
  return request({
    url: '/user/userRelation',
    method: 'post',
    data: data
  })
}

// 修改关系
export function updateUserRelation(data) {
  return request({
    url: '/user/userRelation',
    method: 'put',
    data: data
  })
}

// 删除关系
export function delUserRelation(id) {
  return request({
    url: '/user/userRelation/' + id,
    method: 'delete'
  })
}
